/**
 * @author Joep Kemperman
 * @version 0.1
 */
package gui;

import javax.swing.JButton;

/**
 * JButton, holding corresponding query
 * @author Kay van Bree, Joep Kemperman
 */
public class QueryButton extends JButton {
	
	private String query;
	
	/**
	 * Constructor
	 * @author Joep Kemperman
	 * @param name Name of the button
	 * @param query Query associated with the button
	 * @since 0.1
	 */
	public QueryButton(String name, String query) {
		super(name);
		this.query = query;
	}
	
	/**
	 * Returns the corresponding query string
	 * @author Kay van Bree
	 * @return Query
	 */
	public String getQuery(){
		return query;
	}
	
	
}
